package com.mujie.advice;

import org.springframework.aop.ThrowsAdvice;

import java.lang.reflect.Method;

public class EngineFailure implements ThrowsAdvice {
    public void afterThrowing(Method method, Object[] args, Object target, Exception ex) throws Throwable {
        System.out.println("错误！");
    }
}
